<html>
  <head>
    <link rel="stylesheet" href="${createLinkTo(dir:'css',file:'base.css')}" />
  </head>
  <body>
    <div class="seccion">
      <g:if test="${listaErrores && listaErrores.size()>0}">
        <div class="errors">
          <ul>
            <g:each var="error" in="${listaErrores}">
              <li>${error}</li>
            </g:each>
          </ul></div>
      </g:if>
      <g:hasErrors bean="${usuarioInstance}">
          <div class="errors">
            <g:renderErrors bean="${usuarioInstance}" as="list" />
          </div>
        </g:hasErrors>
      
      <g:hasErrors bean="${alumnoInstance}">
        <div class="errors">
          <g:renderErrors bean="${alumnoInstance}" as="list" />
        </div>        
      </g:hasErrors>
    </div>
  <g:form action="registrarAlumno" method="post" autocomplete="off" name="definicion">
    <table align="center">
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="cedula">
            <g:message code="alumno.cedula.label" default="C&eacute;dula" />
          </label>                </td>
        <td valign="top" class=" value ${hasErrors(bean: alumnoInstance, field: 'cedula', 'errors')}"><g:textField name="cedula" maxlength="50" value="${params?.cedula}" class="campos" style="width:200px;"/>                </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="nombres">
            <g:message code="alumno.nombres.label" default="Nombres" />
          </label>            
        </td>
        <td valign="top" class=" value ${hasErrors(bean: alumnoInstance, field: 'nombres', 'errors')}">
          <input  name="nombres" maxlength="50" value="${params?.nombres}"  class="campos" style="width:200px;"/>
        </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="apellidos">
            <g:message code="alumno.apellidos.label" default="Apellidos" />
          </label>                </td>
        <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'apellidos', 'errors')}"><g:textField name="apellidos" maxlength="50" value="${params?.apellidos}"  class="campos" style="width:200px;"/>                </td>
      </tr>
      <tr class="prop">
        <td width="183" align="left" valign="middle" class="name"><label for="telefonoPersonal">
            <g:message code="alumno.telefonoPersonal.label" default="Tel&eacute;fono Personal" />
          </label>                </td>
        <td width="307" valign="top" class=" value ${hasErrors(bean: alumnoInstance, field: 'telefonoPersonal', 'errors')}"><g:textField name="telefono" maxlength="50" value="${params?.telefono}" class="campos" style="width:200px"  />                           </td>
      </tr>
      <tr class="prop">
        <td align="left" valign="middle" class="name"><label for="correo">
            <g:message code="alumno.correo.label" default="Correo" />
          </label>                </td>
        <td valign="top" class="value ${hasErrors(bean: alumnoInstance, field: 'correo', 'errors')}"><g:textField name="correo" maxlength="50" value="${params?.correo}"  class="campos" style="width:200px"/>                                               </td>
      </tr>
      <tr>
        <td class="labels">Usuario</td>
        <td class="value ${hasErrors(bean:usuarioInstance,field:'login','errors')}">
          <input style="width:200px" type="text" class="campos" id="login" name="login" value="${params?.login}" ${eOc=='edit'?'disabled':''}/>                </td>
      </tr>
      <tr>
        <td height="20px">

        </td>  
      </tr>  
      <tr>
        <td colspan="2" align="center">
          <input type="submit" class="boton" value="Registrar">
        </td>  
      </tr>  
    </table>
  </g:form>
</body>
</html>
